using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Diagnostics;

namespace KinectProject
{
    
    /// <summary>   
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        Page page;
        public MainWindow()
        {
            InitializeComponent();
        }


        private void Window_Loaded(object sender, RoutedEventArgs e)
        {

        }

        private void ParametersButton(object sender, RoutedEventArgs e)
        {

            page = new parameterPage();
            this._mainFrame.Navigate(page);
            this.SizeToContent = SizeToContent.WidthAndHeight;

        }

        private void recordsButton_Click(object sender, RoutedEventArgs e)
        {
            page = new recordsPage();
            this._mainFrame.Navigate(page);
            this.SizeToContent = SizeToContent.WidthAndHeight;
        }

        private void sliderButton_Click(object sender, RoutedEventArgs e)
        {

            var window = new DisplayPage();
            window.Show();
        }

        private void Grid_SizeChanged(object sender, SizeChangedEventArgs e)
        {
            this.SizeToContent = SizeToContent.WidthAndHeight;
        }
    }
}
